package com.application.controller;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class Result {
    private Object data;  //用来封装数据   前段 看数据  就只看  data
    private Integer code; //状态码
    private String mes;   //返回的信息

    public Result(Integer code,Object data) {
        this.data = data;
        this.code = code;
    }

    public Result() {
    }

    public Result(Integer code, Object data, String mes) {
        this.data = data;
        this.code = code;
        this.mes = mes;
    }
}
